﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace PasswordControl
{
    /// <summary>
    /// this section stores the constants used by the program
    /// </summary>
    partial class ControlProgram
    {
        public const string DEFAULT_PROFILE_NAME = "new profile";

        public const string GROUP_ALL = "All Groups";
        public const string GROUP_GENERAL = "General";
        public const string GROUP_DELETED = "Deleted";

        public const string MESSAGE_ERROR = "Error";

        //
        // application directories
        //
        private static readonly string m_applicationPath = Path.Combine(
            Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "PasswordControl");
        public static string APPLICATION_PATH
        {
            get
            {
                if (!Directory.Exists(m_applicationPath)) Directory.CreateDirectory(m_applicationPath);
                return m_applicationPath;
            }
        }
        public static readonly string PROFILES_PATH = Path.Combine(APPLICATION_PATH, "Profiles");
        public static readonly string DATA_FILE = Path.Combine(APPLICATION_PATH, "Data.xml");
        public static readonly string DEFAULT_SETUP_FILE = Path.Combine(APPLICATION_PATH, "DefaultSetup.xml");
        public const string PASSWORD_EXTENTION = ".SOD";
        public const string PASSWORD_EXTENTION_OPEN = ".SOD_OPEN";
    }
}
